#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>

class DataRefreshThread ;
class QLabel ;

class InstrumentSettingWidget  ;
namespace Ui {
    class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();
protected:

    void CreateToolBar()  ;
    void CreateStatusBar() ;
    void UpdateStatusBarMessage(int nId_ , QString& str_) ;

    void CreateInstrumentSettingWidget();
    void resizeEvent(QResizeEvent *);


private:
    Ui::MainWindow *ui;
    DataRefreshThread* m_pThreadDraw ;
    InstrumentSettingWidget* m_pInstrument;

    QLabel* m_pStatusCell[3] ;
private slots:
    void slotsLeftTabButton(Qt::MouseButton) ;
    void slotsRightTabButton(Qt::MouseButton) ;
    void slotActionTriggered(QAction* action_) ;

};

#endif // MAINWINDOW_H
